#define _CRT_SECURE_NO_WARNINGS 1
#include"Tree.h"

void TreeTest01()
{
	BTNode* n1 = BTBuyNode(1);
	BTNode* n2 = BTBuyNode(2);
	BTNode* n3 = BTBuyNode(3);
	BTNode* n4 = BTBuyNode(4);
	BTNode* n5 = BTBuyNode(5);
	BTNode* n6 = BTBuyNode(6);

	n1->left = n2;
	n2->left = n3;
	n1->right = n4;
	n4->left = n5;
	n4->right = n6;

	//PreOrder(n1);
	//printf("\n");
	InOrder(n1);
	printf("\n");
	PostOrder(n1);
}

int main()
{
	TreeTest01();
	return 0;
}